<template>
  <div class="ft-grid" :style="{'grid-gap': gutter+'px'}">
    <slot></slot>
  </div>
</template>

<script>
export default {
  name: "FtGrid",
  props: {
    gutter: {
      type: Number,
      default: 20,
    },
  },
};
</script>

<style lang="scss">
.ft-grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  > div {
    padding: 15px;
    border-radius: 4px;
    min-height: 150px;
    background: #135d5d; // 135d5d
    color: #95f6f2;
    box-shadow: inset 0px 0px 11px 0px #47d8d4;
    overflow: hidden;
  }
  .header {
    margin-bottom: 15px;
    border-bottom: 1px dashed #47d8d4;
    padding-bottom: 15px;
    text-shadow: 0 0 15px #e3fbfc;
    > .iconfont {
      font-size: 22px;
      vertical-align: -2px;
      margin-right: 6px;
    }
  }
  .flex {
    display: flex;
    line-height: 32px;
    .label {
      width: 100px;
    }
    .span {
      flex: 1;
    }
  }
}
</style>


